package com.itheima.d09_stream_middle_method;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data //hashcode+equals
public class Teacher {
    private String name;
    private int age;
    private String sex;


    public Teacher(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
